package com.lipaluma.xml.validator;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

import com.lipaluma.field.validator.ValidatorFactory;

@XmlRootElement(name=XmlAfterValidator.AFTER)
@XmlAccessorType(XmlAccessType.FIELD)
public class XmlAfterValidator implements XmlValidator {
	public static final String AFTER = "after";
	
	@XmlAttribute(required=true)
	private String date;
	@XmlAttribute(required=true)
	private String pattern;
	
	public String getDate() {
		return date;
	}
	public String getPattern() {
		return pattern;
	}
	
	@Override
	public String getFunctionValidation() {
		return ValidatorFactory.VALIDATION_AFTER_FUNCTION;
	}

}
